package com.edu.statisticsservice;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @ClassName StatisticsApplication
 * @date 2022/9/27 10:54
 * @Version 1.0
 */
@SpringBootApplication
@EnableDiscoveryClient //nacos开启
@EnableFeignClients //feign开启
@ComponentScan("com.edu")
@EnableScheduling //开启定时任务
@MapperScan("com.edu.statisticsservice.mapper")
public class StatisticsApplication {

    public static void main(String[] args) {
        SpringApplication.run(StatisticsApplication.class,args);
    }

}
